package PTA_JAVA.Exception6.demo7;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n=0;
        String[] s = sc.nextLine().split(" ");
        for (int i = 0; i < s.length; i++) {
            if (s[i].matches("[0-9]+")) {
                n+=Integer.parseInt(s[i]);
            }
        }
        System.out.println(n);
    }
}
